#ifndef DATA_H
#define DATA_H

#include "common.h"

class User
{
public:
    Property<qint32>  Id;
    Property<QString> Login;
    Property<QString> Session;
    Property<QString> Email;
    Property<QString> Name;

    bool isAuthorized()
    {
        return (qint32)Id > 0 && !((QString)Session).isNull() && !((QString)Session).isEmpty();
    }
};

class Game
{
public:
    Property<qint32>  Id;
    Property<QString> Name;
};

class Clan
{
public:
    Property<qint32>  Id;
    Property<QString> Name;
};

#endif // DATA_H
